<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>详情</title>
</head>
<body>
    <h1>请假详情</h1>
        <table>
            <tr>
                <td>姓名：</td>
                <td><input type="text" name="name" th:value="${leaverecords.name}"></td>
            </tr>
            <tr>
                <td>请假时间：</td>
                <td><input type="text" name="leaveTime" th:value="${#dates.format(leaverecords.leaveTime,'yyyy-MM-dd')}">格式要求：yyyy-mm-dd</td>
            </tr>
            <tr>
                <td>请假原因：</td>
                <td><textarea cols="30" rows="5" name="reason" th:field="${leaverecords.reason}"></textarea></td>
            </tr>
            <tr>
                <td></td>
                <td><a th:href="@{/leaverecords/page}"><input type="button" value="返回"></a></td>
            </tr>
        </table>
</body>
</html>